$(document).ready(function() {

	$('#delete-all').click(function() {
		if(!confirm("Do you reall want to delete ALL the libraries?\n\n\nREALLY?!?!?")) {
			return false;
		}
		
		window.location.href = "/admin/delete?q";
	});

	$('#put-all').click(function() {
		if(!confirm("Start background process to normalize all libraries?")) {
			return false;
		}
		
		window.location.href = "/admin/putall";
	});

});